#include <stdlib.h>

#include "tarm_ctimer.h"
#include "tarm_pwm.h"
#include "tarm_pca9685.h"

#define _PWMClick_Channal 3

//************* init ******************
void PwmTimer_Config(void)
{

}

void PwmTimer_Init(void)
{
	pca9685_init();
}


//************* all ******************
void PwmAll_Enable(void)
{
	pca9685_init();
}

void PwmAll_Disable(void)
{
	PCA9685_Reset();
}

//************* turn ******************
void PwmTurn_Enable(void)
{

}

void PwmTurn_Disable(void)
{

}

void PwmTurn_ChangeValue(unsigned long value)
{

}

//************* click ******************
void PwmClick_Enable(void)
{
	pca9685_setmk(_PWMClick_Channal, 1200);
}

void PwmClick_Disable(void)
{
	pca9685_setmk(_PWMClick_Channal, 0);
}

void PwmClick_ChangeValue(unsigned long value)
{
	pca9685_setmk(_PWMClick_Channal, value);
}
